<template>
    <FilterNav :GeneralFilterTermList='FilterTermList' />
    <DanceList />
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { FilterTermListReturnType, RequestFilterTermList } from '@/api/Resource';

export default defineComponent({
    name: "Original",
});
</script>

<script setup lang="ts">

import {onMounted, ref} from 'vue'
import { useRoute } from 'vue-router';

const route = useRoute()

let FilterTermList =ref<FilterTermListReturnType>([])

onMounted(() => {
    GetFilterTermList()
})

//请求筛选条件
const GetFilterTermList=async()=>{
    // console.log(route.query.column);
    const original = route.query.column
    const re = await RequestFilterTermList(original as string)
    // console.log(re,'筛选');
    FilterTermList.value = re
}

//自定义事件
// const 


</script>